package com.edu.policy.init;

import com.edu.policy.service.*;
import jakarta.annotation.PostConstruct;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@RequiredArgsConstructor
public class TableServiceResolver {
    private final Map<String, Object> serviceMap = new HashMap<>();
    @PostConstruct
    private void init() {
        // 依此类推，初始化其他表的 Service 映射
    }

    public Object getServiceByTableName(String tableName) {
        return serviceMap.get(tableName);
    }
}
